﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ClassDAL;
using ClassModel;
using System.Data.SqlClient;

namespace ClassBLL
{
    public class t_class_grade_BLL
    {
        /// <summary>
        /// 插入年级信息
        /// </summary>
        /// <param name="grade"></param>
        /// <returns></returns>
        public static int InsertGradeInfo(t_class_grade grade)
        {
            if (grade == null) throw new ArgumentException("grade is null");

            return t_class_grade_DAL.InsertGradeInfo(grade);
        }

          /// <summary>
        /// 根据 excelid 获取年纪信息
        /// </summary>
        /// <param name="fileid"></param>
        /// <returns></returns>
        public static t_class_grade GetGradeInfoWithFileId(int fileid)
        {
            return t_class_grade_DAL.GetGradeInfoWithFileId(fileid);
        }
    }
}
